explicit cast造句
例句与造句
- However , an explicit cast is needed to convert from
类型到整型的转换需要用显式类型转换来完成。 - Instead the expression must include an explicit cast operation
相反,表达式必须包含显式转换操作。 - For example , the following statement will produce a compilation error without an explicit cast
例如,不使用显式类型转换时,下列语句将产生编译错误: - You can never cast objects of sibling classes ( sharing the same parent ) , even with an explicit cast
你永远不可能转化具有同一个超类的类的对象,即使是刻意转化。 - For example , the following statement generates a compiler error unless an explicit cast is used
例如,除非使用显式强制转换,否则以下语句将生成一个编译器错误: - It's difficult to find explicit cast in a sentence. 用explicit cast造句挺难的
- Variable have incompatible data types , the expression requires an explicit cast as shown the second example
变量具有不兼容的数据类型,则表达式就需要进行显式转换,如第二个示例所示。 - Operations that combine an unsigned eight - byte integer and a signed integer require an explicit cast in order to clarify the result format
兼具无符号八字节整数和有符号整数的运算需要显式转换才能使结果格式清楚明了。 - This error occurs if you have code that attempts to convert two types that cannot be implicitly converted , such as in an assignment of a base type to a derived type that is missing an explicit cast
如果您的代码试图转换两种不能隐式转换的类型(例如将基类分配给一个缺少显式强制转换的派生类) ,将发生此错误。 - Although we will not use an explicit cast in the code for the 5 . 0 benchmark , we do need to include it in the baseline measurement , as it is part of the work required to make the iteration useful
尽管对于5 . 0的基准测试我们不显式使用强制转换,但是我们需要在基线测量中加入它,因为这是使遍历具有实用性所必需的。